<template>
    <div class="career">
        <div class="career-list" v-for="(item, key) in dataList">
            <div class="top app-right-icon">
                <div>{{item.position}}</div>
                <div>{{item.company}}</div>
            </div>
            <div class="bottom">
                <span>薪资：{{item.salary}}</span>
                <span>{{item.date}}</span>
            </div>
        </div>
    </div>
</template>

<style lang="less" scoped>
    @import '../../../style/variable';
    .career{
        background-color: #F8F8F8;
        padding-top: 0.8rem;
        &-list {
            background-color: #fff;
            padding: 1.5rem;
            margin-bottom: 0.8rem;
            .top {
                margin-bottom: 1.1rem;
                div:nth-of-type(1) {
                    font-size: 1.5rem;
                    color: #43484E;
                    margin-bottom: 0.6rem;
                }
                div:nth-of-type(2) {
                    font-size: 1.2rem;
                    color: #7A7A7A;
                }
            }
            .bottom {
                font-size: 1.2rem;
                color: #949494;
                display: flex;
                justify-content: space-between;
            }
        }
    }
</style>

<script>
    export default {
        data(){
            const dataList = Array(6).fill({
                position: '业务发展部副经理',
                company: '中联重科融资租赁（北京）公司',
                salary: '40万/年',
                date: '2018/07/01',
            });

            return {
                dataList
            }
        },
        created(){
            this.$store.commit('hideNav', true);
        }
    }
</script>